package com.dotflat.fin.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**用户钱包*/
@Data
@Entity
@Table(name="fin_wallet")
@EqualsAndHashCode(callSuper = true)
public class Wallet extends AreableObjectBase {

    //客户id
    @Column(length = 32)
    private String clienteleId;

    @Column(columnDefinition = "INT default 0 COMMENT '余额'")
    private Long balance = 0l;

    @Column(columnDefinition = "INT default 0 COMMENT '充值金额'")
    private Long deposit = 0l;

    @Column(columnDefinition = "INT default 0 COMMENT '总消费金额'")
    private Long fullAmount = 0l;
}
